﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="maximum-scale=0.8,minimum-scale=0.8,user-scalable=0,width=device-width,initial-scale=0.8" />
    <title>采集人脸示意流程</title>
    <link href="static/lib/diygw-mobile-all.min.css" rel="stylesheet" />
</head>
<body>
    <div style="align-content:center;  padding-top:50px; margin-left:2%; ">
        <img src="images/rlcjsyt.jpg" style="width:90%; height:100%;" alt="Alternate Text" />



        <label style="margin-left:15%; font-size:20px;" class="bg-gradual-red">阅读确认</label>
        <input type="checkbox" id="checkok" style="width:50px;" />
        <button data-index="9385700" id="bt1" disabled style="  margin-top: 10px;" url="pageFacecollection.html" class="weui-btn    bg-gradual-blue  ">下一步(6)</button>
    </div>
    <script src="Script/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">


        $(function () {
            $.post("Ajax/InvalidSession.ashx", {  }, function (data) {
                if (data == "0") {
                    window.location.replace("Binding.aspx");
                }
            });
            var i = 6;
            var timehwnd = setInterval(function () { Countdown()}, 1000);
            function Countdown() {

                i--;
                if (i == 0) {
                    $("button[id='bt1']").html("下一步");
                    $("button[id='bt1']").removeAttr("disabled");
                    clearInterval(timehwnd);
                } else {
                    $("button[id='bt1']").html("下一步(" + i + ")");
                }
            }
        });








        function getUrlParam(openid) {
            var reg = new RegExp("(^|&)" + openid + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
        $("button").click(function () {

            var checkok = $("#checkok").is(":checked");
            if (checkok) {
                var src = $(this).attr('url');
                window.location.replace(src + "?openid=" + getUrlParam("openid"));
            } else
            {
                alert("请阅读重要内容后勾选确认，进行下一步！");
            }
        });
    </script>
</body>
</html>